import { PermissionKeyEnum } from "./enums";

const permissionKeyEnumMap: {
  [key in PermissionKeyEnum]: string;
} = {
  [PermissionKeyEnum.TEST_PERMISSION_LOGIN]: "测试-权限-登录",
  [PermissionKeyEnum.TEST_PERMISSION_PERMISSION]: "测试-权限-权限",
};

/** 通过权限值获取权限名 */
export const getPermissionNameByKey = (key: PermissionKeyEnum): string => {
  return permissionKeyEnumMap[key];
};
